package main

import (
	"fmt"
	"math"
	"math/rand"
	"time"
)

//math包
func main() {
	//pow
	pow := math.Pow(10, 4)
	fmt.Println(pow)

	//round
	fmt.Println(math.Round(10.5))

	//rand
	fmt.Println(rand.Int())
	fmt.Println(rand.Float32())
	fmt.Println(rand.Float64())
	//rand seed 使用当前时间作为随机数的种子
	rand.Seed(time.Now().Unix())
	fmt.Println(rand.Float64())
}
